package com.pap.datas.area.auto.entity;

import java.io.Serializable;

import com.pap.base.entity.PapBaseEntity;
import com.pap.base.mybatis.plugin.annotation.MyBatisColumnAnnotation;
import com.pap.base.mybatis.plugin.annotation.MyBatisTableAnnotation;

@MyBatisTableAnnotation(name = "t_data_area", namespace = "com.pap.datas.area.auto.mapper.BaseAreaMapper", remarks = " 修改点 ", aliasName = "t_data_area t_data_area")
public class BaseArea extends PapBaseEntity implements Serializable {
	/**
	 * 名称,所属表字段为t_data_area.NAME
	 */
	@MyBatisColumnAnnotation(name = "NAME", value = "t_data_area_NAME", chineseNote = "名称", tableAlias = "t_data_area")
	private String name;

	/**
	 * 父级编号,所属表字段为t_data_area.PARENT_ID
	 */
	@MyBatisColumnAnnotation(name = "PARENT_ID", value = "t_data_area_PARENT_ID", chineseNote = "父级编号", tableAlias = "t_data_area")
	private String parentId;

	/**
	 * 级别,所属表字段为t_data_area.LEVEL
	 */
	@MyBatisColumnAnnotation(name = "LEVEL", value = "t_data_area_LEVEL", chineseNote = "级别", tableAlias = "t_data_area")
	private String level;

	private static final long serialVersionUID = 1L;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	@Override
	public String getDynamicTableName() {
		return "t_data_area";
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", name=").append(name);
		sb.append(", parentId=").append(parentId);
		sb.append(", level=").append(level);
		sb.append("]");
		return sb.toString();
	}
}